package org.dna;

import org.apache.wicket.Request;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebSession;

public class MetroSession extends WebSession {

    private static final long serialVersionUID = 5488029598953959163L;
    private User m_user;

    public static MetroSession get() {
        return (MetroSession) Session.get();
    }

    public MetroSession(Request request) {
        super(request);
    }

    public boolean isAuthenticated() {
        return (m_user != null);
    }

    public User getUser() {
        return m_user;
    }

    public void setUser(User user) {
        this.m_user = user;
    }
}
